package com.focus.ctrl.demo.web.maphandler;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class RequestHeaderController {

	@RequestMapping("testHeader")
	@ResponseBody
	public String test(@RequestHeader("Accept-Encoding") String encoding) {
		return encoding;
	}
}
